import { Component } from "react";
import sub from "./sub.js";

export default class Votefooter extends Component{
    render(){
        return <div>
                <button onClick={()=>{
                    sub.emit("add","sup")
                    sub.emit("addTotal")
                }}>支持</button>
                <button onClick={()=>{
                    sub.emit("add","opp")
                    sub.emit("addTotal")
                }}>反对</button>
            </div>
    }
}